package com.sdp.irrigation.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2025-02-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("irrigation_eq_log_register")
public class IrrigationEqLogRegister extends Model<IrrigationEqLogRegister> {

    private static final long serialVersionUID=1L;

    @TableId("key_id")
    private String keyId;

    @TableField("eq_no")
    private String eqNo;

    @TableField("eq_name")
    private String eqName;

    @TableField("eq_type")
    private String eqType;

    @TableField("project_no")
    private String projectNo;

    @TableField("pw_no")
    private String pwNo;

    @TableField("field_no")
    private String fieldNo;

    @TableField("eq_model")
    private String eqModel;

    @TableField("mcu_id")
    private String mcuId;

    @TableField("cc_id")
    private String ccId;

    @TableField("hd_ver")
    private String hdVer;

    @TableField("sof_ver")
    private String sofVer;

    @TableField("well_code")
    private String wellCode;

    @TableField("eq_lng")
    private String eqLng;

    @TableField("eq_lat")
    private String eqLat;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("upload_time")
    private LocalDateTime uploadTime;

    @TableField("protocol_content")
    private String protocolContent;
    
    /**
     * 行政区域编码
     */
    @TableField("area_code")
    private String areaCode;
    
    /**
     * 设备注册号
     */
    @TableField("eq_register_no")
    private String eqRegisterNo;
    
    /**
     * 省平台启用状态
     */
    @TableField("province_platform_status")
    private String provincePlatformStatus;
    
    /**
     * 通讯服务端url
     */
    @TableField("xiertai_url")
    private String xiertaiUrl;
    
    /**
     * 省平台url
     */
    @TableField("province_platform_url")
    private String provincePlatformUrl;
    
    /**
     * 项目方url
     */
    @TableField("project_url")
    private String projectUrl;
    
    /**
     * 测试url
     */
    @TableField("test_url")
    private String testUrl;
    
    /**
     * 备用url
     */
    @TableField("sanfang_url")
    private String sanfangUrl;
    
    /**
     * 运维url
     */
    @TableField("yunwei_url")
    private String yunweiUrl;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
